package com.hhw.service;

import java.util.List;

import com.hhw.dao.AdminDao;
import com.hhw.entity.Admin;


public class AdminService {
			/*实例化数据访问层*/
		private AdminDao admindao=new AdminDao();
		Admin r=new Admin();
		
		/*验证管理员查询方法*/
		public List<Admin> findAdmin(){
			return admindao.findAdmin();
		}
		
		/*判断管理员是否存方法*/
		public boolean isExist(Admin r){
			return admindao.isExist(r);
		}
		/*验证查询方法根据<name>*/
		public List<Admin> findAllAdmin(String admin_name){
			return admindao.findAllAdmin(admin_name);
		}
		

		
}
